package com.lineage.server.serverpackets;

public class S_PacketBoxIcon1 extends ServerBasePacket {
  private static final int ICONS1 = 20;
  
  private static final int _dodge_up = 88;
  
  private static final int _dodge_down = 101;
  
  private byte[] _byte;
  
  public S_PacketBoxIcon1(int type, int time) {
    this._byte = null;
    writeC(250);
    writeC(20);
    writeH(time);
    writeC(type);
  }
  
  public S_PacketBoxIcon1(boolean type, int i) {
    this._byte = null;
    writeC(250);
    if (type) {
      writeC(88);
      writeC(i);
    } else {
      writeC(101);
      writeC(i);
    } 
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
